<?php

	/*
	* @author Nguyen Xuan Hong
	* @copyright 2011
	*/
							
	require_once('../includes/about.tbl.php');
	$pClsAbout = new clsAboutTable;

	//$pageconfig->reloadocunter();
	//$subpageconfig->unUserAttr(array("username"));
	
	$branch_id = $_GET['branch'];
	
	if($branch_id > 0)
	{
		$pClsAbout->loadDB('branch_id', $branch_id, 'keyword', "intro");
		if($pClsAbout->avaibleSubmit())
		{
			$pClsAbout->loadBuffer();
			
			$image = upload_file("Upload/", 'imgbrowser_image', $pClsAbout->value('image'));
			if($image != "")
			{
				$pClsAbout->setvalue('image', $image);
			}
			
			$pClsAbout->updateDB('branch_id', $branch_id, 'keyword', "intro");
			echo acpredirect();
			exit();
		}
		echo $pClsAbout->createForm('Thay đổi bài viết giới thiệu về cơ sở');
		exit();
	}
?> 














  